@charset "UTF-8";
:root {
  --c-body: #cecece;
  --c-box: #f8f8f8;
  --c-icon: #333;
}
:root.dark {
  --c-body: #333;
  --c-box: #1b1a23;
  --c-icon: #fff;
  --toggle: 52px;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--c-body);
}

.switcher {
  position: relative;
  width: 320px;
  height: 120px;
  background-color: var(--c-box);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  border-radius: 60px;

}

.switcher > * {
  padding: 0 10px;
}

ion-icon {
  font-size: 3em;
  color: var(--c-icon);
}

.toggle {
  width:90px;
  height: 40px;
  background-color: #ccc;
  border-radius: 40px;
  padding: 6px;
}


.tgl-cir {
  position: relative;
  top: 1px;
  width: 38px;
  height: 38px;
  background-color: #fff;
  border-radius: 100%;
  transform: translateX(var(--toggle, 0));
  transition: transform .1s ease-in;
  pointer-events: none;

}
